<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><PHP>echo getSysTitle();</PHP></title>
<link href="__CSS__/table.css" rel="stylesheet" type="text/css" />
<script src="__JS__/jquery-1.6.2.min.js"></script>

<script>
$(document).ready(function(){
	$("#submit").bind("click",function(){
		var _url=window.location.href;
		var _list=_url.split('?');
		var _http=_list[0];
		var _pList=_list[1].split('&');
		var _usePara=[];
		for(var i=0;i<_pList.length;i++ ){
			var _p=_pList[i];
			var _t=_p.split('=')[0];
			if(_t=='g' || _t=='m' || _t=='a'  || _t=='t' || _t=='f1' || _t=='f2' /*|| _t=="p"*/){
				_usePara.push(_p);
			}
		}
		
		var _newHttp=_http+"?"+_usePara.join('&');
		
		_newHttp+="&c_name="+encodeURI($("#c_name").val());
		
		window.location.href=_newHttp;
		
	});
	
	$("#allCheck").click(function(){
		$("input[name='terim[]']").each(function(){
			if($(this).attr("checked")){
				$(this).removeAttr("checked");
				
			}else{
				$(this).attr("checked",true);
			}
		});
	});
	$("#submit1").click(function(){
		$__list=[];
		$("input[name='terim[]']").each(function(){
			if($(this).attr("checked")){
				$__list.push($(this).val());
			}
		});
		
		if($__list.length>0){
			var __list=$__list.join(',');
			callback(__list);
		}
	});
});
function callback(list){
	if(parent.callbackChannel){
		parent.callbackChannel(list);
	}
}
</script>
<style>
a {color:#FFFFFF}
.searchInput{width:60px;}
</style>
</head>

<body>
<fieldset>
    <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
  
	  <tr>
	  	<td align="center">
	  		<form action="" method="post">
		  		<table  border="0" cellpadding="0" cellspacing="0" bgcolor="#a8c7ce">
		  			<tr>
		  				<td bgcolor="#FFFFFF"><span class="STYLE10">名称：</span></td>
		  				<td bgcolor="#FFFFFF" >
		  					<input class="searchInput" type="text" name="c_name" id="c_name" value="{$c_name}"></input>
		  				</td>
		  				
		  				<td bgcolor="#FFFFFF">
		  					<input type="button" name="submit" id="submit" value="查询"></input> 
		  				</td>
		  			</tr>
		  		</table>
	  		</form>
	  	</td>
	  </tr>
	  <tr>
	    <td>
	    
	    <table width="100%" border="0" cellpadding="0" cellspacing="1" bgcolor="#a8c7ce" >
	      <tr>
	       	<th><input type="checkbox" id="allCheck"></th>
	        
	        <th  height="20" bgcolor="d3eaef" class="STYLE6"><div align="center"><span class="STYLE10">渠道名称</span></div></th>
	       
	        
	      </tr>
	      <volist name="userList" id="data">
			<tr>
				<td width="5%"><div class="ck"><input type="checkbox" name="terim[]" value="{$data.C_NMAE}"></div></td>
		        <td height="20" bgcolor="#FFFFFF" class="STYLE6"><div align="center"><span class="STYLE19">{$data.C_NMAE}</span></div></td>
		       
	      	</tr>
	      </volist>
	    </table>
	    
	    </td>
	  </tr>
	  <tr>
	  	<td height="20" bgcolor="#FFFFFF" class="pageToolbar" align="left">{$page}</td>
	  </tr>
	  <tr>
	  	<td align="center">
	  		<input type="button" id="submit1" value="确定选择"></input>
	  	</td>
	  </tr>
    </table>
</fieldset>
</body>
</html>
